package cn.itsource.petHome.basic.mapper;



import cn.itsource.petHome.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    List<T> loadAll();

    T loadById(Long id);

    //查询总数
    Long getCount(BaseQuery q);

    //获取所有数据
    List<T> queryPage(BaseQuery query);

    //高级查询
    List<T> highQuery(BaseQuery q);

    void batchDelete(Long[] ids);
}
